لطفا از تمام مطالب دیدن فرمایید.
فصل چهارم _ بخش چهارم _ساختار ها در C#
ایجاد ساختار ها:
در امتحان کنید زیر، با نحوه ایجاد یک ساختار آشنا خواهیم شد.
امتحان کنید: ایجاد یک ساختار
-
یک پروژه جدیدی به نام Structure Demo ایجاد کنید.
-
بعد از اینکه پروژه ایجاد شد در پنجره Solution Explorer بر روی ناک پروژه کلیک راست کرده، و از منوی نمایش داده شده گزینه Add را انتخاب کنید.سپس از یر منو باز شده گزینه Class… را انتخاب کنید . پنجره ای به نام Add New Item – Structure Demo نمایش داده خواهد شد. در قسمت نام عبارت Customer را وارد کرده و سپس بر روی دکمه Add کلیکک نید تا ایتم جدیدی به برنامه اضافه شود.
-
بعد از اینکه صفحه ای که جدید ایجاد کرده اید نمایش داده شد، کد های داخل ان را پاک کنید و کد های زیر را به جای ان وارد کنید:
موضوعات مرتبط: فصل چهارم _ بخش چهارم _ساختار ها در C# ، ،
برچسبها:
صفحه قبل 1 صفحه بعد




















لطفا از دیگر مطالب نیز دیدن فرمایید